package com.livce.service;

import com.livce.entity.Livecommerce;
import com.livce.mapper.LivecommerceMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/12/13  15:35
 */
@Service("livecommerceService")
public class LivecommerceServiceImpl implements LivecommerceService {

    @Autowired
    LivecommerceMapper livecommerceMapper;
    @Override
    public List<Livecommerce> selectAll() {
        return livecommerceMapper.selectAll();
    }

    @Override
    public int insert(Livecommerce livecommerce) {
        return livecommerceMapper.insert(livecommerce);
    }

    @Override
    public Livecommerce selectById(@Param("id") int id) {
        return livecommerceMapper.selectById(id);
    }
}
